const index = [
  'Dashboard',
  'Analysis',
  'Workplace',
];
const department = [
  'Department',
  'department:page',
  'department:all',
  'department:all:self',
  'department:create',
  'department:update',
  'department:detail',
  'department:delete',
];
const user = [
  'User',
  'user:page',
  'user:create',
  'user:detail',
  'user:update',
  'user:update:self',
  'user:update:password',
  'user:update:reset-password',
  'user:update:status',
];
const menu = [
  'Menu',
  'menus:list:all',
  'menus:list',
  'menus:perms:button',
  'menus:page',
  'menus:detail',
  'menus:create',
  'menus:update',
  'menus:delete',
];
const role = [
  'Role',
  'roles:page',
  'roles:detail',
  'roles:create',
  'roles:update',
  'roles:delete',
];
const dict = [
  'Dict',
  'dicts:create',
  'dicts:update',
  'dicts:page',
  'dicts:list',
  'dicts:detail',
  'dicts:detail:all',
  'dicts:delete',
];
const log = [
  'Log',
  'log:page',
  'log:detail'
]

const common = [
  'user:update:self',
  'dicts:list',
  'dicts:detail',
]


export const ROLE_DATA = [
  {
    name: '超级管理员',
    code: 'super_admin',
    remark: '拥有所有权限',
    menuCodes: [
      ...index,
      'Authorization',
      ...department,
      ...user,
      ...menu,
      ...role,
      'System',
      ...dict,
      ...log
    ],
  },
  {
    name: '管理员',
    code: 'admin',
    remark: '管理员',
    menuCodes: [
      ...index,
      'Authorization',
      ...department,
      ...user,
    ],
  },
  {
    name: '普通用户',
    code: 'user',
    remark: '普通用户',
    menuCodes: [...index, ...common],
  },
] as const;
